package com.example.rpc.provider;

import com.example.rpc.api.HelloService;
import com.example.rpc.api.HelloServiceImpl;
import com.example.rpc.framework.protocl.http.HttpServer;
import com.example.rpc.framework.registry.LocalRegister;


public class ProviderApplication {
    public static void main(String[] args) {
        LocalRegister.regist(HelloService.class.getName(), HelloServiceImpl.class);

        HttpServer server=new HttpServer();
        server.start("localhost",8080);// 这里会产生阻塞
    }
}
